var App = require('app');

App.UserSignonRoute = Ember.Route.extend({
	setupController : function(controller, model) {
		
	},
});

App.UserSignupRoute = Ember.Route.extend({
	setupController : function(controller, model) {
		
	},
});

App.UserSignoutRoute = Ember.Route.extend({
	setupController : function(controller, model) {
		var me = this;

		
		$.ajax({                                                                                                              
			type : 'POST',
			dataType : 'json', 
			//contentType: "application/json",
			async : false,
			url : Vari.ApiRestV1 + 'user/signout',
			data : {
				
			},
			success : function(json) {
				if (json.success) {
					$.removeCookie(Vari.TokenName);
					me.transitionTo("user.signon");
				}
			}
		});	
	},
});